<include file="public:header" />
<div class="allpagetop">任务设置<strong>/</strong>列表</div>
<div class="admin_main_nr_dbox">
 	    <div class="pagetit">
	        <div class="ptit">任务设置</div>
				<div class="topnav">
			         
					  <a href="{:RU('task/lists',array('type'=>''))}" <if condition="($type eq '') AND (ACTION_NAME neq 'lv')">class="select"</if>>全部</a>
					  <a href="{:RU('task/lists',array('type'=>1))}" <if condition="$type eq '1'">class="select"</if>>单次任务</a>
					  <a href="{:RU('task/lists',array('type'=>2))}" <if condition="$type eq '2'">class="select"</if>>循环任务</a>
				 	  <a href="{:RU('task/lv')}" <if condition="ACTION_NAME eq 'lv'">class="select"</if>>等级规则</a>	  
				    <div class="clear"></div>
				</div>
	        <div class="clear"></div>
	    </div>
		
  
    <form id="form1" name="form1" method="post" action="{:RU('task/lvsave')}">
	
	  <div class="admin_list_th">
	    <div class="td1" style=" width:50%;"> 
		  <div class="left_txt_td">等级名称</div>
		</div>
		<div class="td4" style=" width:20%;">起始经验</div>
		<div class="td3" style=" width:20%;">经验要求</div>
 		<div class="td5" style=" width:10%;">  <div class="admin_list_right">操作</div></div>
	  <div class="clear"></div>
	  </div>
	  
	  
	    <volist name="list" id="list">
					   <div class="admin_list_tr link_bk">
						<div class="td1" style=" width:50%;">
						  <div class="left_txt_td striking">
							 <input name="id[]" type="hidden" id="id" value="{$list.id}"  />
							 <input name="name[]" type="text"  class="input_text_default small" maxlength="100" value="{$list.name}" />
							
							</div>
						</div>
						<div class="td4" style=" width:20%;">
						<span class="userLV">LV{$list.lv_id}</span>{$list.exp_min}~{$list.exp_max}
						</div>
						<div class="td3" style=" width:20%;">
								<input name="exp_min[]" type="text"  class="input_text_default small" maxlength="100" value="{$list.exp_min}" style="width:120px;"/>
						</div>
						 
						<div class="td5 edit" style=" width:10%;">
								<div class="admin_list_right link_blue">
								<a class="gray" href="{:RU('task/lv_delete',array('id'=>$list['id']))}" onclick="return confirm('你确定要删除吗？')">删除</a>
								</div>
						</div>
						
				 
					  <div class="clear"></div>
					  </div>
	   </volist>
	   
	  <div id="J_add_show_div"></div>
	  
 <div class="admin_list_tr">
						<div class="td1" style=" width:60%;">
								<div class="category_list_add" id="J_category_add">添加等级</div>
						</div>	 
				 
					 	<div class="clear"></div>
	</div> 
      

  
  
    <empty name="list">
    <div class="admin_list_no_info">没有任何信息！</div>
    </empty>
	
	
	
	<div class="admin_list_foot">
			  <div class="btnbox">
			 	 <input type="submit"  class="admin_submit"   value="保存设置 "/>			 
			  </div>
			  
			  
			  
	          
	</div>
	  </form>
  
</div>
<include file="public:footer" />
<script type="text/javascript">
$(document).ready(function(){

function get_add_html()
{
	var html='';
	html+="<div class=\"admin_list_tr\">";
	html+="<div class=\"td1\" style=\" width:50%;\">";
	html+="<div class=\"left_txt_td striking\">";
	html+="<input name=\"add_name[]\" type=\"text\"  class=\"input_text_default small\" value=\"未命名\"/>";
	html+="</div>";
	html+="</div>";
	html+="<div class=\"td2\" style=\" width:25%;\">&nbsp;";
	html+="</div>";
	html+="<div class=\"td3\" style=\" width:25%;\">";
	html+="<input name=\"add_exp_min[]\" type=\"text\"  class=\"input_text_default small\" maxlength=\"100\"  style=\"width:120px;\" value=\"0\"/>";
	html+="</div>";
	html+="<div class=\"clear\"></div>";
	html+="</div>";
	return html;
}
//添加顶级分类
$("#J_category_add").live('click',function()
{
	html=get_add_html();
	$("#J_add_show_div").before(html);
});
 
});
</script>
</body>
</html>